<%@page contentType="text/html; charset=utf-8"%>
<%@ include file="../inc/TagLibs.jsp"%>
<c:set var="pageTitle" value="安装单作废" />
<%@ include file="../inc/Title.jsp"%>
<head>
<link rel="stylesheet" type="text/css" href="/css/base.css" />
<script language="javascript">
	function doCancel(){
		parent.ClosePop();
	}
	function doDisabled(id){
		window.location = "/system/CancelReasonNew.ihtm?id="+id+"&cancel_type=setuBill";
	}
	function doInit(){
	}
</script>
</head>
<body oncontextmenu="return false" onload="doInit();" class="sheet modal-dialog" style=" padding-top:10px;">
<div class="sheet-main" id="bodyDiv" style="width:860px;">
  <div class="sheet-list" style="width:100%">
    <div class="modal-main search-business">
    	<div style="width:100%;">
    	<table border="0" cellspacing="0" cellpadding="0" align="center" class="table-0">
			<tr>
				<td style="width:33%" rowspan="2"></td>
				<td style="width:33%;text-align:center" rowspan="2"><h2>安装单作废</h2></td>
				<td style="width:34%" class="tr">
					编号：${record.setuBill.billCode}
				</td>
			</tr>
			<tr>
				<td class="tr">派单日期：<fmt:formatDate value="${record.setuBill.billDate}" pattern="yyyy-MM-dd HH:mm"/></td>
			</tr>
		</table>
		
		<table border="0" cellspacing="0" cellpadding="0" align="center" class="table-0">
		    <tr>
				<td class="InfoTitleDivider"></td>
			</tr>
		</table>
		
		<table border="0" cellspacing="0" cellpadding="0" align="center" class="table-0">
			<tr>
		      	<th style="width:10%">订货单位：</th>
		      	<td style="width:22%">${record.clientName}</td>
		      	<th style="width:8%">联系人：</th>
		     	<td style="width:16%">${record.setuBill.lm}</td>
		     	<th style="width:6%">电话：</th>
		     	<td style="width:16%">${record.setuBill.phon}</td>
		    	<td class="tr" style="width:22%">业务单号：${record.bbCode}</td>
		    </tr>
		</table>
		
		<table border="0" cellspacing="0" cellpadding="0" align="center" class="table-0">
		    <tr>
				<td class="InfoTitleDivider"></td>
			</tr>
		</table>

		<div class="table-list">
			<table width="98%" border="0" cellspacing="0" cellpadding="0" align="center" id="itemTbl" >
				<tbody id="itemRowTbl">
				<tr>
					<th width="10%">项目类型</th>
					<th width="12%">内容</th>
					<th width="12%">材质</th>
					<th width="12%">规格</th>
					<th width="18%">制作要求</th>
					<th width="10%">订货数量</th>
					<th width="10%">本次安装</th>
					<th width="16%">备注</th>
				</tr>
				<c:forEach var="item" items="${record.items}" varStatus="i">
				<tr>
					<td >${item.makeTypeName}</td>
					<td >${item.finishedContent}</td>
					<td >${item.productName}</td>
					<td >${item.specification}</td>
					<td >${item.makeRequire}</td>
					<td ><commonTag:parseBigDecimal source="${item.amountTotal}" /></td>
					<td ><commonTag:parseBigDecimal source="${item.setuBillItem.amount}" /></td>
					<td >${item.setuBillItem.mark}</td>
				</tr>
				</c:forEach>
				</tbody>
			</table>	 				
		</div>
		
		<table border="0" cellspacing="0" cellpadding="0" align="center" class="table-0">
		    <tr>
				<td class="InfoTitleDivider"></td>
			</tr>
		</table>
		
		<table border="0" cellspacing="0" cellpadding="0" align="center" class="table-a2 BillElseInfo">
			<tr>
				<th>安装人员：</th>
			    <td>${record.setuBill.setuNameStr}</td>
				<th>安装地址：</th>
			   	<td>${record.setuBill.addr}</td>
			   	<th>工程金额：</th>
			    <td>${record.setuBill.cost}</td>
			</tr>
			<tr>
				<th>安装负责人：</th>
			    <td>${record.setuBill.mngName}</td>
			    <th>计划完工：</th>
			   	<td><fmt:formatDate value="${record.setuBill.planDate}" pattern="yyyy-MM-dd HH:mm"/></td>
			    <th>余额：</th>
			    <td>${record.setuBill.remaCost}</td>
			</tr>
			<tr>
			    <th>安装配备：</th>
			    <td colspan="5">
			    	<c:if test="${record.setuBill.needCar=='Y'}">需要派车</c:if>
			    	<c:if test="${record.setuBill.needHigh=='Y'}">高空作业</c:if>
			    	<c:if test="${record.setuBill.needWeld=='Y'}">焊接作业</c:if>
			    	<c:if test="${record.setuBill.needStee=='Y'}">不锈钢</c:if>
			    </td>
			</tr>
			<tr>
			    <th>图样：</th>
			    <td colspan="5">
			    	<c:if test="${record.setuBill.examImg!=null && record.setuBill.examImg!=''}"><a href="${record.setuBill.examImg}" target="_blank">${record.examImgName}</a></c:if>
			    </td>
			</tr>
			<tr>
			    <th>安装要求：</th>
			    <td colspan="5">${record.setuBill.requ}</td>
			</tr>
			<tr>
			    <th>备注：</th>
			    <td colspan="5">${record.setuBill.mark}</td>
			</tr>
		</table>
		
		<div class="blank12">&nbsp;</div>
        <p class="give">
        	<span>开单人：${record.setuBill.creaName} <c:if test="${record.setuBill.creaTime!=null}"><fmt:formatDate value="${record.setuBill.creaTime}" pattern="yyyy-MM-dd HH:mm"/></c:if></span>
			<span>审核人：<c:if test="${record.setuBill.examId!=0}">${record.setuBill.examName} <c:if test="${record.setuBill.examTime!=null}"><fmt:formatDate value="${record.setuBill.examTime}" pattern="yyyy-MM-dd HH:mm"/></c:if></c:if></span>
			<span>单据帐套：${record.tsName}</span>
         </p>
         
         </div>		    	
    </div>
  </div>
	<div class="modal-buttom">
			<input type="button" class="buttom-a" value=" 作 废 " onClick="doDisabled('${record.setuBill.id}');">
			<input type="button" class="buttom-a" value=" 退 出 " onClick="doCancel();">			
	</div>  
</div>
</body>
</html>
